
//
//  LVBellViewController.m
//  LEVE
//
//  Created by 上官惠阳 on 2017/3/2.
//  Copyright © 2017年 dashuju. All rights reserved.
//

#import "LVBellViewController.h"
#import "LVGreetManageVc.h"
#import "LVPropManageVc.h"

@interface LVBellViewController ()
@end

@implementation LVBellViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"动态管理";

    [self loadData];
}
- (void)loadData
{
    [self.dataArray addObject:@"打招呼"];
    [self.dataArray addObject:@"道具"];

    [self.tableView reloadData];
}
#pragma mark - UITableViewDelegate
- (NSInteger)HY_numberOfSections {
    return 1;
}

- (NSInteger)HY_numberOfRowsInSection:(NSInteger)section {
    return 2;
}

- (HYBaseTableViewCell *)HY_cellAtIndexPath:(NSIndexPath *)indexPath {

    HYBaseTableViewCell *cell = [HYBaseTableViewCell cellWithTableView:self.tableView];
    cell.textLabel.text = self.dataArray[indexPath.row];
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return cell;
}
- (CGFloat)HY_cellheightAtIndexPath:(NSIndexPath *)indexPath {
    return 65;
}
- (void)HY_didSelectCellAtIndexPath:(NSIndexPath *)indexPath cell:(HYBaseTableViewCell *)cell
{
    if (indexPath.row == 0) {
        LVGreetManageVc *greetVc = [[LVGreetManageVc alloc] init];
        [self pushVc:greetVc];
    }else{
        LVPropManageVc *propVc = [[LVPropManageVc alloc] init];
        [self pushVc:propVc];
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
